import { request } from "@/common/request";

// 获取地区列表
export const getAreaList = (data?: object, options?: any) =>
  request({ url: "/address/getArea", data, options });

//品号信息列表
export const getErpProdList = (data?: object, options?: any) =>
  request({ url: "/prod/getProdInfo", data, options });

// 拉取品号信息
export const getErpProdInfo = (data?: object, options?: any) =>
  request({ url: "/prod/getErpProd", data, options });

// 获取地区维度报表
export const getAreaTargetList = (data?: object, options?: any) =>
  request({ url: "/target/getAreaTarget", data, options });

// 品号维度报表
export const getGoodsTargetList = (data?: object, options?: any) =>
  request({ url: "/target/getGoodsTarget", data, options });

// 大区目标汇总列表
export const getTarget = (data?: object, options?: any) =>
  request({ url: "/target/getTarget", data, options });

// 大区目标列表
export const getRegionTarget = (data?: object, options?: any) =>
  request({ url: "/target/getRegionTarget", data, options });

// 用户目标列表
export const getUserTarget = (data?: object, options?: any) =>
  request({ url: "/target/getUserTarget", data, options });

// 操作客户目标
export const opCusTarget = (data?: object, options?: any) =>
  request({ url: "/target/opCusTarget", data, options });

// 根据ERP客户编号获取客户名称
export const getErpCusInfo = (data?: object, options?: any) =>
  request({ url: "/custom/getErpCusInfo", data, options });

// 客户列表
export const getCustomList = (data?: object, options?: any) =>
  request({ url: "/custom/getCustom", data, options });

// 操作客户
export const opCustom = (data?: object, options?: any) =>
  request({ url: "/custom/opCustom", data, options });

// 大区列表
export const getRegionList = (data?: object, options?: any) =>
  request({ url: "/region/getRegion", data, options });

// 操作大区
export const opRegion = (data?: object, options?: any) =>
  request({ url: "/region/opRegion", data, options });

// 拉取订单
export const getOrderData = (data?: object, options?: any) =>
  request({ url: "/order/getOrderData", data, options });

// 用户列表
export const getUserList = (data?: object, options?: any) =>
  request({ url: "/user/userList", data, options });

// 操作用户
export const opUser = (data?: object, options?: any) =>
  request({ url: "/user/opUser", data, options });

// 用户登录
export const userLogin = (data?: object, options?: any) =>
  request({ url: "user/userLogin", data, options });

// 供应商列表
export const getSupplyList = (data?: object, options?: any) =>
  request({ url: "/supply/supplyList", data, options });

// 操作供应商
export const opSupply = (data?: object, options?: any) =>
  request({ url: "/supply/opSupply", data, options });

// 获取ERP品类列表
export const getProdCate = (data?: object, options?: any) =>
  request({ url: "/prod/getProdCate", data, options });


// 获取ERP品号列表
export const getProdList = (data?: object, options?: any) =>
  request({ url: "/prod/getProd", data, options });

//查询ERP供应商信息
export const getSupplyInfo = (data?: object, options?: any) =>
  request({ url: "/supply/getSupplyInfo", data, options });

//市场容量列表
export const getBussiTargetList = (data?: object, options?: any) =>
  request({ url: "/target/bussiTarget", data, options });

// 操作市场容量
export const opBussiTarget = (data?: object, options?: any) =>
  request({ url: "/target/opTarget", data, options });

// 获取ERP省份列表
export const getProvince = (data?: object, options?: any) =>
  request({ url: "/address/getProvince", data, options });

// 获取问题列表
export const getQuestionList = (data?: object, options?: any) =>
  request({ url: "/question/qaList", data, options });

// 新增/编辑问题
export const opQuestion = (data?: object, options?: any) =>
  request({ url: "/question/opQa", data, options });

// 问题回复列表
export const getReplyList = (data?: object, options?: any) =>
  request({ url: "/question/getReplyList", data, options });

// 问题回复
export const questionReply = (data?: object, options?: any) =>
  request({ url: "/question/questionReply", data, options });

// 获取进销存记录
export const getInventoryList = (data?: object, options?: any) =>
  request({ url: "/inventory/invList", data, options });

// 获取品牌列表
export const getBrandList = (data?: object, options?: any) =>
  request({ url: "/brand/getBrandList", data, options });

// 获取分库列表
export const getStorageList = (data?: object, options?: any) =>
  request({ url: "/inventory/getStorage", data, options });

// 供应商结算信息列表
export const getSupplySettleList = (data?: object, options?: any) =>
  request({ url: "/supplySettle/getSupplySettle", data, options });

// 编辑奖励金额、罚款金额等
export const opSupplySettle = (data?: object, options?: any) =>
  request({ url: "/supplySettle/opSupplySettle", data, options });

// 批量结算
export const opSettleStatus = (data?: object, options?: any) =>
  request({ url: "/supplySettle/opSettleStatus", data, options });

// 销售单销退单列表
export const getSettleOrder = (data?: object, options?: any) =>
  request({ url: "/supplySettle/getSettleOrder", data, options });

// 获取公告列表
export const getNoticeList = (data?: object, options?: any) =>
  request({ url: "/notice/getNoticeList", data, options });

// 新增/编辑公告
export const opNotice = (data?: object, options?: any) =>
  request({ url: "/notice/opNotice", data, options });

// 供应品号占比
export const getProductCodeProportion = (data?: object, options?: any) =>
  request({ url: "/supply/getProductCodeProportion", data, options });

// 我的机会
export const getCategoryCapacity = (data?: object, options?: any) =>
  request({ url: "/supply/getCategoryCapacity", data, options });

// 供应数量占比
export const getProductNumProportion = (data?: object, options?: any) =>
  request({ url: "/supply/getProductNumProportion", data, options });

// 库存阶段性报表
export const getInventoryStatistics = (data?: object, options?: any) =>
  request({ url: "/supply/getInventoryStatistics", data, options });

// 进销存汇总表
export const getStorageProportion = (data?: object, options?: any) =>
  request({ url: "/supply/getStorageProportion", data, options });

// 年月市场容量列表
export const getBussiStageTargetList = (data?: object, options?: any) =>
  request({ url: "/monthTarget/monthTargetList", data, options });

// 添加修改年月市场容量
export const opBussiStageTarget = (data?: object, options?: any) =>
  request({ url: "/monthTarget/opTarget", data, options });

// 删除年月市场容量
export const delBussiStageTarget = (data?: object, options?: any) =>
  request({ url: "/monthTarget/del", data, options });

  // 获取容量列表（图标专用)
export const getBussiStageTargetChartData = (data?: object, options?: any) =>
  request({ url: "/monthTarget/yearTargetList", data, options });


// 奖惩列表
export const getSupplyBonuPenaltyList = (data?: object, options?: any) =>
  request({ url: "/supplyBonuPenalty/list", data, options });

// 添加/编辑供应商奖惩信息
export const opSupplyBonuPenalty = (data?: object, options?: any) =>
  request({ url: "/supplyBonuPenalty/saveOrUpt", data, options });

// 删除供应商奖惩信息
export const delSupplyBonuPenalty = (data?: object, options?: any) =>
  request({ url: "/supplyBonuPenalty/del", data, options });


// 品号列表
export const getProductStockList = (data?: object, options?: any) =>
  request({ url: "/productStock/list", data, options });

// 添加/编辑品号信息
export const opProductStock = (data?: object, options?: any) =>
  request({ url: "/productStock/opStock", data, options });

// 删除品号信息
export const delProductStock = (data?: object, options?: any) =>
  request({ url: "/productStock/del", data, options });


// 下载品号库存信息模板
export const getProductTmplFileUrl = (data?: object, options?: any) =>
  request({ url: "/productStock/importTemplate", data, options,method:'get' });

// 设置品类总品号
export const opCategory = (data?: object, options?: any) =>
  request({ url: "/category/opCategory", data, options});


